# 浮点数的的计算
import math

n = 2.1
n2 = 12.566
# 四舍五入 round
n3 = round(n + n2, 3)
print(n3)

# 向上取整 ceil
n4 = math.ceil(n + n2)
print("向上取整的结果是", n4)
# 向下取整 floor
n4 = math.floor(n + n2)
print("向上取整的结果是", n4)
